package homework1;

public class JavaTc extends Staff{
    private String workname = "java讲师";
    public JavaTc(String name, String gender, int age) {
        super(name, gender, age);
    }

    @Override
    public void work() {
        System.out.println("姓名:"+getName()+","+"性别:"+getGender()+","+"年龄:"+getAge()+","+workname);
    }
}
